package com.caishi.lkx.user.service;


import com.zzw.common.entity.BSService;
import com.caishi.lkx.user.model.re.SysGroupLocationReModel;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
* @Param:
* @return
* @Author: huangpeng
* @Date: 2022/1/6 15:09
* @Description:
*/
public interface IGroupLocationReService extends BSService<SysGroupLocationReModel,Long> {

    void checkExist(BigDecimal longitude, BigDecimal latitude,Long oldId);

    Boolean reBind(Long id, Long groupId, String currentUserId);

    Boolean unBind(Long id, String currentUserId);

    void deleteByGroupId(Long groupId);

    void deleteByGroupIds(List<Long> groupIds);

    Long getGroupIdByLocation(BigDecimal longitude, BigDecimal latitude, Integer groupDistance);

    Map<String, Object> batchCheckLocationExist(String locationStr);
}
